﻿@model ContactManagement.Models.ChangePasswordModel
@{
    ViewBag.Title = GlobalResources.PageTitles.ChangePasswordRESX;
}

<div class="span12">
    <h2>@GlobalResources.PageTitles.ChangePasswordRESX</h2>
    <hr />
    <div class="well">@string.Format(GlobalResources.UserViews.ChangeUseFormPwRESX, Membership.MinRequiredPasswordLength)</div>
</div>

<div class="span12">
    @using (Html.BeginForm(EActionUser.ChangePassword.ToString(), EControllers.User.ToString(), FormMethod.Post, new { @class = "form-horizontal" }))
    {
        <fieldset>
            @Html.MyValidationSummary(GlobalResources.SystemMessages.ErrorChangePasswordRESX)
            <div class="control-group">
                @Html.LabelFor(model => model.OldPassword, new { @class = "control-label" })
                <div class="controls">
                    @Html.PasswordFor(model => model.OldPassword)
                    @Html.ValidationMessageFor(model => model.OldPassword)
                </div>
            </div>
            <div class="control-group">
                @Html.LabelFor(model => model.NewPassword, new { @class = "control-label" })
                <div class="controls">
                    @Html.PasswordFor(model => model.NewPassword)
                    @Html.ValidationMessageFor(model => model.NewPassword)
                </div>
            </div>
            <div class="control-group">
                @Html.LabelFor(model => model.ConfirmPassword, new { @class = "control-label" })
                <div class="controls">
                    @Html.PasswordFor(model => model.ConfirmPassword)
                    @Html.ValidationMessageFor(model => model.ConfirmPassword)
                </div>
            </div>
            <div class="form-actions">
                <input class="btn btn-primary" type="submit" value="@GlobalResources.Navigation.ChangePasswordRESX" />
            </div>
        </fieldset>
    }
</div>

<div class="span12">
    <div class="well">
        @Html.ActionLink(GlobalResources.Navigation.BackToStartpageRESX, EActionHome.Index.ToString(), EControllers.Home.ToString(), null, new { @class = "btn btn-small", data_icon = "icon-arrow-left" })
    </div>
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
